/*
 * @Author: szx
 * @Date: 2023-03-31 14:10:59
 * @LastEditTime: 2023-03-31 19:22:47
 * @Description:
 * @FilePath: \learn\fullstackopen\bloglist-part5\src\services\login.js
 */
import axios from 'axios'
const baseUrl = '/api/login'

const loginService = async credentials => {
    const response = await axios.post(baseUrl, credentials)
    return response.data
}

export default loginService